filename = r'C:\Users\lenovo\Downloads\topics_d.pkl'

import pickle
with open(filename, 'rb') as f:
    topics_d = pickle.load(f)

for key, topics in topics_d.items():
    for topic in topics:
        if topic["topic_id"] == 50851:
            print(topic)

